package com.example.zzm.yuejian03.Service;


import com.example.zzm.yuejian03.Bean.ActivBean;
import com.example.zzm.yuejian03.Bean.AnswerBean;
import com.example.zzm.yuejian03.Bean.BaominBean;
import com.example.zzm.yuejian03.Bean.ClassBean;
import com.example.zzm.yuejian03.Bean.ClassListBean;
import com.example.zzm.yuejian03.Bean.ClubBean;
import com.example.zzm.yuejian03.Bean.CollectclubBean;
import com.example.zzm.yuejian03.Bean.CollectmBean;
import com.example.zzm.yuejian03.Bean.CommentBean;
import com.example.zzm.yuejian03.Bean.DingdanBean;
import com.example.zzm.yuejian03.Bean.LoginBean;
import com.example.zzm.yuejian03.Bean.Lunbotu;
import com.example.zzm.yuejian03.Bean.MasterBean;
import com.example.zzm.yuejian03.Bean.MatchBean;
import com.example.zzm.yuejian03.Bean.MovieBean;
import com.example.zzm.yuejian03.Bean.MyBean;
import com.example.zzm.yuejian03.Bean.PictureBean;
import com.example.zzm.yuejian03.Bean.RegistBean;
import com.example.zzm.yuejian03.Bean.SousuoBean;
import com.example.zzm.yuejian03.Bean.TrainBean;
import com.example.zzm.yuejian03.Bean.collectBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


/**
 * Created by zengfanjun on 2017/10/30.
 */

public interface Service {
    @GET("index/index")
    Call<LoginBean> getLogin(
            @Query("name") String name,
            @Query("password") String password
    );

    @GET("index/index")
    Call<RegistBean> getRegist(
            @Query("name") String name,
            @Query("password") String password,
            @Query("real_name") String real_name,
            @Query("nickname") String nickname,
            @Query("comment") String comment
    );
    //轮播图
    @GET("banner/index")
    Call<List<Lunbotu>> getBanner();
    //俱乐部列表
    @GET("club/lists")
    Call<List<ClubBean>> getClub();
    //最具人气
    @GET("club/clubhot")
    Call<List<ClubBean>> getClubzj();
    //离我最近
    @GET("club/distanceclub")
    Call<List<ClubBean>> getClublw();
    //俱乐部详情
    @GET("club/details")
    Call<ClubBean> getClubdetails(
            @Query("club_id") Integer club_id
    );
    //俱乐部关注
    @GET("club/like")
    Call<collectBean> getGuanzhu(
            @Query("club_id") Integer club_id,
            @Query("user_id") Integer user_id
    );
    //取消关注
    @GET("club/unlike")
    Call<collectBean> getQuxiao(
            @Query("club_id") Integer club_id,
            @Query("user_id") Integer user_id
    );
    //判断是否关注
    @GET("club/isliked")
    Call<collectBean> getIslike(
            @Query("club_id") Integer club_id,
            @Query("user_id") Integer user_id
    );
    //晒图
    @GET("slideshow/lists")
        Call<List<PictureBean>> getPost();
    //晒图详情
        @GET("slideshow/details")
    Call<PictureBean> getPicturedetails(
            @Query("show_id") Integer show_id
    );
        //晒图评论
        @GET("slideshow/comment")
        Call<List<CommentBean>> getComment(
                @Query("show_id") Integer show_id
        );
    //全部训练
    @GET("train/lists")
    Call<List<TrainBean>> getTrain();
    //入门训练
    @GET("train/alists")
    Call<List<TrainBean>> getTraina();
    //菜鸟训练
    @GET("train/blists")
    Call<List<TrainBean>> getTrainb();
    //进阶训练
    @GET("train/clists")
    Call<List<TrainBean>> getTrainc();
    //训练详情
    @GET("train/details")
    Call<TrainBean> getTraindetails(
            @Query("train_id") Integer train_id
    );
    //课程
    @GET("club/class_list")
    Call<List<ClassBean>> getClass(
            @Query("club_id") Integer club_id
    );
    //视频
    @GET("club/club_video")
    Call<List<MovieBean>> getMovie(
            @Query("club_id") Integer club_id
    );
    //活动
    @GET("activity/lists")
    Call<List<ActivBean>> getActiv();
    //活动详情
    @GET("activity/details")
    Call<ActivBean> getActivdetails(
            @Query("activity_id") Integer activity_id
    );

    //大师
    @GET("master/lists")
    Call<List<MasterBean>> getMaster();
    //大师详情
    @GET("master/details")
    Call<MasterBean> getMasterdetails(
            @Query("mid") Integer mid
    );
    //大师问答
    @GET("master/question")
    Call<List<AnswerBean>> getAnswer(
            @Query("mid") Integer mid
    );
    //大师课堂
    @GET("master/class_list")
    Call<List<ClassListBean>> getClassList(
            @Query("mid") Integer mid
    );
    //比赛
    @GET("recentgame/lists")
    Call<List<MatchBean>> getMatch();
    //我的
    @GET("my/index")
    Call<MyBean> getMy(
            @Query("user_id") Integer user_id
    );
    //我的关注列表
    @GET("my/like")
    Call<List<CollectclubBean>> getClubcollectList(
            @Query("user_id") Integer user_id
    );
    //我的收藏列表
    @GET("my/slike")
    Call<List<CollectmBean>> getCollectm(
            @Query("user_id") Integer user_id
    );
//我的晒图列表
@GET("my/slideshow")
Call<List<PictureBean>> getslideshowList(
        @Query("user_id") Integer user_id
);
//我的订单列表
@GET("my/order")
Call<List<DingdanBean>> getorderList(
        @Query("user_id") Integer user_id
);
//训练报名
@GET("train/signup")
Call<BaominBean> trainsignup(
        @Query("train_id") Integer train_id,
        @Query("user_id") Integer user_id
);
//发布评论
@GET("slideshow/fabuComment")
Call<collectBean> fabu(
        @Query("user_id") Integer train_id,
        @Query("intro") String intro,
        @Query("sid") Integer sid
);
//结算
@GET("train/jiesuan")
Call<collectBean> trainjiesuan(
        @Query("train_id") Integer train_id,
        @Query("user_id") Integer user_id,
        @Query("people_num") Integer people_num
);
//修改密码
@GET("my/update_pwd")
Call<collectBean> updatePassword(
        @Query("user_id") Integer user_id,
        @Query("password") String password
);
    //修改名称
    @GET("my/update_name")
    Call<collectBean> updateName(
            @Query("user_id") Integer user_id,
            @Query("name") String name
    );
    //搜索
    @GET("search/searchitem")
    Call<List<SousuoBean>> getSearch();
}
